a=input())
max_prostoe=0
if len(a)!=4:
    print(max_prostoe)
else:
    b=list(a)
    '''
    brbambam
    '''
    print(max_prostoe)